package com.thkj.service;

import com.thkj.entity.LivingAlarm;
import com.thkj.entity.Violation;
import dp.dao.PagingList;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface LivingAlarmService {

    void insert(LivingAlarm livingAlarm);

    PagingList<LivingAlarm> query(Integer page, Integer size, String individual_id, Integer violation_state, Integer violation_type, String device_id);


    Map<String, List<Object>> queryByYear(String individual_id, String year);

    Map<String, List<Object>> queryByMonth(String individual_id, String month) throws ParseException;

    Map<String, List<Object>> queryByDay(String individual_id, String day);

    Map<String, List<Object>> queryByWeek(String individual_id);

    Integer queryTotal(String individual_id, Integer violation_state, int type, String timeStr);


    Map<String, List<Object>> queryStatistics(String individual_id, Integer type, String timeStr) throws Exception;
}